<!DOCTYPE html>
    <head>
        <script src="index.js"></script>
    </head>

    <body>

        <script>
            // 8、循环调用错误异常的测试
            let p1 = new Promise(function(resolve,reject){
                resolve("p1 成功")
                // reject("p1 失败")
            }).then(()=>{
                return p1
            })
        </script>
    </body>
</html>